package com.xulinhao.vodtest;/**
 * @author xulinhao
 * @create 2021-08-29 21:40
 */
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.exceptions.ClientException;
/**
 * @Author xlh
 * @packagename: com.xulinhao.vodtest
 * @classname: InitObject
 * @Description:
 * @Date 2021/8/29
 */
public class InitObject {
    public static DefaultAcsClient initVodClient(String accessKeyId, String accessKeySecret) throws ClientException {
        String regionId = "cn-shanghai";  // 点播服务接入区域
        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
        DefaultAcsClient client = new DefaultAcsClient(profile);
        return client;
    }
}
